	// PatternBuilder 规则
	var PatternBuilder=function(){}
	PatternBuilder.text=function(min,max){
		var str="^[\\s\\S]{"+min+","+max+"}$";
		return str;
	}
	PatternBuilder.content=function(min,max){
		var str="^[\\s\\S]{"+min+","+max+"}$";
		return str;
	}
	PatternBuilder.letterNumber=function(min,max){
		var str="^[a-zA-Z0-9]{"+min+","+max+"}$";
		return str;
	}
	PatternBuilder.letter=function(min,max){
		var str="^[a-zA-Z]{"+min+","+max+"}$";
		return str;
	}
	PatternBuilder.int=function(min,max){
		var str="^[0-9]{"+min+","+max+"}$";
		return str;
	}
	PatternBuilder.float=function(integer,float){
		var str="^((([1-"+integer+"]\\d*)|0)(\\.\\d{1,"+float+"})?)$";
		return str;
	}
	PatternBuilder.number=function(integer,float){
		var str="^((([1-"+integer+"]\\d*)|0)(\\.\\d{1,"+float+"})?)$";
		return str;
	}
	PatternBuilder.email=function(){
		var str="^([a-zA-Z0-9_\\-\\.]+)@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.)|(([a-zA-Z0-9\\-]+\\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)$";
		return str;
	}
	PatternBuilder.tel=function(){
		var str="^.{1,20}$";
		return str;
	}
	PatternBuilder.mobile=function(){
		var str="^[0-9]{11,11}$";
		return str;
	}
	PatternBuilder.unequal=function(str){
		//^(?!0$)
		var str="^(?!"+str+"$)";
		return str;
	}
	
	HTMLTurbo.util.PatternBuilder=PatternBuilder;